home *** CD-ROM | disk | FTP | other *** search
- mgrterm $Revision: 1.1 $
-
- jwahar r. bammi
- bammi@cadence.com
-
- mgrterm is a fairly full featured terminal emulator for use under MiNT or
- MiNT + MGR. when operating under MGR (default unless TERM is set to
- something other than "mgr") it will put up menus, accessible via the
- middle mouse button (left button if you use eric smiths mouse map in
- your ~/mgr.rc). if mgrterm is not operating under MGR, all the features
- are still available via a keyboard interface, accessible via the escape
- character CTRL-]. hit CTRL-]? to get the top level selection an follow the
- prompts from thereon down. the keyboard CTRL-] interface is also available
- when operating under MGR, but the verbose prompts are shut off. the rest
- of this file talks about mgrterm assuming you are operating under MGR, but
- keep in mind that all the features are available via the keyboard CTRL-]
- interface too.
-
- USAGE:
- mgrterm [-P <serial device>] [<white pages file>]
-
- support for <serial device> is not in place, as i dont have an atariST capable
- of multiple serial devices. at a later stage i may add support for midi too.
-
- the <whitepages> file may optionally be specified on the command line. if
- it is accessible for reading, it will be used. if it is not specified, mgrterm
- will first look for the environment variable WHITEPAGES. if it is not
- found it will look for d:\etc\white. if found, it will be used. see the
- section WHITEPAGES below for format of the whitepages file.
-
- MENUS
- once mgrterm begins, the following menus are available on the middle button:
-
- Main Menu Baud Dial FlowControl
- --------- ---- ---- -----------
- Suspend 19200 ph#1 None
- Baud => 9600 .. Rts/Cts
- Dial => 2400 Xon/Xoff
- ToggleDuplex 1200 .. Both
- FlowControl => 300 ph#n
- StuffTermcap ||
- Shell \/
- Status paged 15 entries per page
- =============
- Quit
-
- the menus marked "==>" are pull right menus (click on them and drag right
- for a submenu to appear). the dial submenus are paged 15 entries per page
- labeled with entries from your whitepages file. to dial a number, from
- the main menu pull-right on dial, then page down to the desired entry
- (dragging down the last entry on a submenu, will page you down to the
- next page if any). the rest of the menus do pretty much what you would
- expect them to do. suspend is particularly useful to fire up transfers
- with rz/sz. to use it, your shell must understand job control (bash, mintksh,
- allans improved init and the orig. mini-init all do).
-
- WHITEPAGES:
- the whitepages file may either be specified
- - on the command line
- - via the WHITEPAGES environment variable
- - otherwise the default below is used if it exists
- - if no white pages exits, the menu entry will contain a dummy.
- The dial pull right menu is paged, 15 entries/page.
-
- The whitepages files can contain
- - comments lines - beginning with '#'
- - blank lines
- - entries
- a whitepages entry is for the form (max length of an entry == 132)
- name : [baud] : [dial string]
-
- the name is the key. only enough characters to make the search
- unambiguous need be specified. embedded blanks are significant.
- leading and trailing one are ignored. case is significant.
-
- if no baud is specified, then the present baud rate is not changed,
- otherwise the baud rate is set when the entry is chosen. leading and
- trailing blanks are ignored. if the baud specified is invalid, the dial
- is aborted.
-
- if a dial string is specified, it is sent to the modem with interpretation.
- leading blanks are ignored. tailing ones are significant. the dial string
- is interpreted as follows:
- \n, \r, \\ send newline, carriage return and backslash respectively.
- \nnn send octal char nnn
- \s<number> sleep for <number> seconds
- \t<number> set char wait timeout to <number> seconds (default 10 seconds)
- \w<char> wait until char, all chars occurring in the mean while
- are skipped. Abort dial on timeout. the char may be
- specified in octal form \nnn (\r etc not allowed ).
- examples:
- unix direct login : 19200 : \w:bammi\r\w:mypasswd\r
- # switch to 19200 baud, wait for ':' send string "bammi\r" wait for ':'
- # send string "mypasswd\r". use default char wait timeout period.
- unix dialup : 2400 : atdt5551212\w:bammi\r\w:mypasswd\r
- compuserve : 2400 : atdt5551515\w2\w4\w0\w0\r\w:CIS\r\w:71515,111\r\w:xxx\r
- timbaktu :: atdt1timbaktu\r
- # use current baud rate
- 2400 : 2400 :
- # just change baud rate
- # here is my GEnie entry
- GEnie : 2400 : \t20atdt681-0501\r\w4\w0\w0\w\015\s1hhh\w=\022xtx12345,mypaswd\r
- what is does is:
- - set char wait timeout to 20 seconds
- - dial the genie #
- - await 400[.*]\n (from the modem saying "CONNECT 2400\r\n")
- - sleep for 1 second
- - send hhh
- - wait for = (from GEnie prompting U#= )
- - send CTRL-R followed by the login string, followed by \r
-
- MISC
- mgrterm is best run when the M_BACKGROUND mode is set on the window. mgrterm
- will set it on startup. (remember to definitely set this when doing rz/sz
- transfers, otherwise they will block and timeout, if the window is
- obscured). i do it in my ~/mgr.rc as follows:
-
- map 0 4 1 5 2 6 3 7
- font 1 sail6x8r.fnt
- font 2 gal7x11r.fnt
- font 3 ser7x12r.fnt
- font 4 cour7x12b.fnt
- font 5 cour7x14r.fnt
- font 6 ser8x16r.fnt
- font 7 ser9x18r.fnt
- font 8 cour9x16b.fnt
- font 9 cmr9x16r.fnt
- font 10 cmr10x16b.fnt
- font 11 gal12x20r.fnt
- font 12 cmr14x25r.fnt
- font 13 cmr15x25r.fnt
- font 14 shadow38x40b.fnt
- font 15 dot1x1r.fnt
- window 0 0 80c 24c 3
- flags nokill background
- start setenv TERM mgr; mgrmode background
- window -1 -1 -1 -1 1
- flags nokill background
- start setenv TERM mgr; mgrmode background
- newwindow
- done
-
- there was a small bug in mgr.prg as distributed, where it would not
- read entries in mgr.rc correctly. the patch to correct this problem is
- included in this distribution. i will try send a corrected mgr.prg upto
- an archive as soon as i find a volunteer who is willing to receive it
- via mail from me, and send it up.
-
- BUGS
- - support for multiple serial devices not there.
- - should support midi
- - mgrterm/rz/sz works fine at 19.2k on my setup (a 1040 with a FastTech
- processor -- highly recommended). you may need to either limit the
- baud rate, or restrict the sub-packet length in rz/sz (via -l option).
- if you are uploading to unix system, -l 128 is recommended above 1200
- baud. if you are downloading via a typical terminal server, use
- a sub-packet length (i use sz -l 1024) on the unix end, to prevent the
- terminal server from timing out, while rz streams. when down-loading from
- GEnie, rz will take atleast one timeout to sync up. i dont know
- why this is so. after that, it streams just fine.
-
- ACKNOWLEDGMENTS
- the inner term loop is based on the simple mgrterm by
- david@doe.utoronto.ca (David Megginson). thanks david.
- of course none of this would be possible without eric smith. hats off to him
- for MiNT.
-
- enjoy,
- --
- bang: uunet!cadence!bammi jwahar r. bammi
- domain: bammi@cadence.com
- GEnie: J.Bammi
- CIS: 71515,155
-